package com.szy.news.control;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

import android.app.Application;
import android.content.res.Configuration;
import android.view.View.OnCreateContextMenuListener;

public class MyApplication extends Application {
	
	public String username;
	public static boolean flag = false;	
//	private boolean flag;
	public static List<Integer> dianzan= new ArrayList<Integer>();
	
	
	public static List<Integer> getDianzan() {
		return dianzan;
	}

	public static void setDianzan(List<Integer> dianzan) {
		MyApplication.dianzan = dianzan;
	}

	public boolean isFlag() {
		return flag;
	}

	public void setFlag(boolean flag) {
		this.flag = flag;
	}


	private static final MyApplication instance = new MyApplication();
	
	@Override
	public void onCreate() {
		super.onCreate();
	}

	public static MyApplication getApplicationInstance(){
		return instance;
	}

	public String getUsername() {
		return username;
	}


	public void setUsername(String username) {
		this.username = username;
	}

	HashMap<String	, Integer> C_hasp;
	public HashMap<String, Integer> getC_hasp() {
		return C_hasp;
	}

	public void setC_hasp(HashMap<String, Integer> c_hasp) {
		C_hasp = c_hasp;
	}
	
	
}
